{% extends 'course-video.html' %}
{% load staticfiles %}
{% block title %}
    公开课评论 - 慕学在线网
{% endblock %}
{% block custom_css %}
    <link rel="stylesheet" type="text/css" href="{% static 'css/muke/course/learn-less.css' %}"/>
    <link rel="stylesheet" type="text/css" href="{% static 'css/muke/course/course-comment.css' %}"/>
    <link rel="stylesheet" type="text/css" href="{% static 'css/muke/base.css' %}">
    <link rel="stylesheet" type="text/css" href="{% static 'css/muke/common-less.css' %}">
    <link rel="stylesheet" type="text/css" href="{% static 'css/muke/course/common-less.css' %}">
    <link rel="stylesheet" type="text/css" href="{% static 'css/mooc.css' %}"/>
{% endblock %}
{% block custom_bread %}
    <section>
        <div class="wp">
            <div class="crumbs">
                <ul>
                    <li><a href="/">首页</a>></li>
                    <li><a href="{% url 'courses:course_list' %}">公开课程</a>></li>
                    <li><a href="{% url 'courses:detail' course.id %}">课程详情</a>></li>
                    <li>课程评论</li>
                </ul>
            </div>
        </div>
    </section>
{% endblock %}
{% block custom_comments %}
    <!--发布评论-->
    <div id="js-pub-container" class="issques clearfix js-form">
        <div class="wgt-ipt-wrap pub-editor-wrap " id="js-pl-input-fake">
            <textarea id="js-pl-textarea" class="" placeholder="扯淡、吐槽、表扬、鼓励……想说啥就说啥！"></textarea>
        </div>
        <input type="button" id="js-pl-submit" class="pub-btn" data-cid="452" value="发表评论">
        <p class="global-errortip js-global-error"></p>
    </div>
    <div id="course_note">
        <ul class="mod-post" id="comment-list">
            {% for comment in all_comments %}
                <li class="post-row">
                    <div class="media">
                                    <span target="_blank"><img
                                            src='{{ MEDIA_URL }}{{ comment.user.image }}'
                                            width='40' height='40'/></span>
                    </div>
                    <div class="bd">
                        <div class="tit">
                            <span target="_blank">{{ comment.user.username }}</span>
                        </div>
                        <p class="cnt">
                            {{ comment.comments }}</p>
                        <div class="footer clearfix">
                            <span title="创建时间" class="l timeago">{{ comment.add_time }}</span>
                        </div>
                    </div>
                </li>
            {% endfor %}
        </ul>
    </div>
{% endblock %}
{% block custom_js %}

{% endblock %}

